package mr.zhang.pojo.model;

import java.util.HashSet;
import java.util.Set;

/**
 * SysRole entity. @author MyEclipse Persistence Tools
 */

public class SysRole implements java.io.Serializable {

	// Fields

	private Integer id;
	private String roleName;
	private Set sysRoleAuthorities = new HashSet(0);
	private Set sysUserGroupRoles = new HashSet(0);

	// Constructors

	/** default constructor */
	public SysRole() {
	}

	/** full constructor */
	public SysRole(String roleName, Set sysRoleAuthorities,
			Set sysUserGroupRoles) {
		this.roleName = roleName;
		this.sysRoleAuthorities = sysRoleAuthorities;
		this.sysUserGroupRoles = sysUserGroupRoles;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Set getSysRoleAuthorities() {
		return this.sysRoleAuthorities;
	}

	public void setSysRoleAuthorities(Set sysRoleAuthorities) {
		this.sysRoleAuthorities = sysRoleAuthorities;
	}

	public Set getSysUserGroupRoles() {
		return this.sysUserGroupRoles;
	}

	public void setSysUserGroupRoles(Set sysUserGroupRoles) {
		this.sysUserGroupRoles = sysUserGroupRoles;
	}

}